import ddddocr

ocr = ddddocr.DdddOcr(show_ad=False);
with open('1.jpg', 'rb') as f:
    image_bytes = f.read()
    res = ocr.classification(image_bytes)
    print(res)